package Day33;

public class PersonText {
    public static void main(String[] args) {
        Person english = new EnglishPerson("Tom");
        Person chinese = new Chinese("小周");
        english.greet();
        chinese.greet();
        Person[] people = new Person[2];
        people[0] = english;
        people[1] = chinese;
        people[0].greet();
        people[1].greet();
    }
}
